/* General Styles */
:root {
  --primary-color: #8B1A1A;     /* 深红色主题色 */
  --secondary-color: #FFB3B3;   /* 浅红色 */
  --accent-color: #D7263D;      /* 鲜红色强调色 */
  --text-color: #333;
  --light-bg: #f4f4f4;
  --white: #ffffff;
  --dark-bg: #1a1a1a;
  --gray: #666;
  --light-gray: #ddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2vw;
  background: rgba(139,26,26,0); /* 初始透明 */
  color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1);
  min-width: 0;
  width: 100vw;
  box-sizing: border-box;
}

.navbar.scrolled {
  background: var(--primary-color);
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 0;
  flex-shrink: 0;
}

.navbar .logo i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.navbar .nav-links {
  display: flex;
  flex: 1 1 0%;
  justify-content: center;
  gap: 2vw;
  min-width: 0;
  flex-wrap: wrap;
  overflow: hidden;
}

.navbar .nav-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.navbar .nav-links a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.navbar .book-btn {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 1vw;
  box-sizing: border-box;
  flex-shrink: 0;
}

.navbar .book-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('../assets/照片/沧州市区/古楼\(夜晚\).jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--white);
  font-size: 2rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Buttons */
.primary-btn {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.outline-btn {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.outline-btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.secondary-btn {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.15);
  cursor: pointer;
  transition: background 1s cubic-bezier(0.4,0,0.2,1), color 0.3s, transform 0.2s, box-shadow 0.3s;
  letter-spacing: 1px;
}

.secondary-btn:hover {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px 0 rgba(139, 26, 26, 0.3);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(even) {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Noto Sans SC', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Heritage Content Layout */
.heritage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.heritage-content.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.heritage-content.reverse > * {
  direction: ltr;
}

.heritage-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  padding: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.heritage-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.heritage-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--light-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.feature-item i {
  color: var(--primary-color);
}

/* Timeline */
.timeline {
  margin: 2rem 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--white);
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  margin: 0;
  color: var(--gray);
}

/* Canal Gallery */
.canal-gallery {
  margin-top: 4rem;
}

.canal-gallery h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  padding: 0.8rem;
  font-size: 1rem;
  text-align: center;
}

/* Facts Grid */
.facts-container {
  margin-top: 4rem;
}

.facts-container h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.fact-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.fact-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.fact-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.fact-card p {
  color: var(--gray);
}

/* Museums Grid */
.museums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.museum-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.museum-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.museum-image {
  position: relative;
  height: 250px;
}

.museum-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transition: transform 0.5s ease;
}

.museum-card:hover .museum-image img {
  transform: scale(1.1);
}

.museum-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1.5rem;
  color: var(--white);
}

.museum-overlay h3 {
  font-size: 1.5rem;
  margin: 0;
}

.museum-content {
  padding: 1.5rem;
}

.museum-content p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.museum-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.info-item i {
  color: var(--primary-color);
}

/* Virtual Tour */
.virtual-tour {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  margin-top: 4rem;
}

.virtual-tour h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.virtual-tour p {
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.virtual-tour .primary-btn {
  background-color: var(--white);
  color: var(--primary-color);
}

.virtual-tour .primary-btn:hover {
  background-color: var(--secondary-color);
}

/* Heritage Grid */
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.heritage-item {
  display: flex;
  gap: 2rem;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.heritage-item:hover {
  transform: translateY(-5px);
}

.heritage-icon {
  font-size: 3rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.heritage-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.heritage-info p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.heritage-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.heritage-features span {
  background-color: var(--light-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* Heritage Events */
.heritage-events {
  margin-top: 4rem;
}

.heritage-events h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  display: flex;
  gap: 1.5rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  border-radius: 8px;
  min-width: 70px;
  text-align: center;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.event-date .day {
  font-size: 1.8rem;
  font-weight: 700;
}

.event-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.event-info p {
  color: var(--gray);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

textarea {
  resize: none;
  height: 120px;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-info .info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info .info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.contact-info .info-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.contact-info .info-item p {
  margin: 0;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about {
  max-width: 350px;
}

.footer-about .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-about .logo i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: var(--light-gray);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--light-gray);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent-color);
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: var(--light-gray);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-newsletter h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-newsletter h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-newsletter p {
  margin-bottom: 1.5rem;
  color: var(--light-gray);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  color: var(--white);
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.newsletter-form .primary-btn {
  padding: 0.8rem 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
}

/* Animations */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-element.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 从左侧滑入 */
.animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.animate-left.animate {
  opacity: 1;
  transform: translateX(0);
}

/* 从右侧滑入 */
.animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.animate-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* 放大显示 */
.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-out;
}

.animate-scale.animate {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .heritage-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 1rem;
  }
  
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }
  
  .navbar .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .heritage-content,
  .heritage-content.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .museums-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .gallery-container {
    grid-template-columns: 1fr;
  }
  
  .facts-grid {
    grid-template-columns: 1fr;
  }
  
  .events-container {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}